package com.example.imterface.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: banban
 * @Desctription: TODO
 * @Date: Created in 2023/12/8 16:30
 * @Version: 1.0
 */
@Data
@TableName(value = "shop_product")
public class Product implements Serializable {
    @TableId(type = IdType.AUTO,value = "pid")
    private Integer pid;
    @TableField(value = "pname")
    private String pname;
    @TableField(value = "pprice")
    private Double pprice;
    @TableField(value = "stock")
    private Integer stock;
}
